import Vue from 'vue'
import App from './App.vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

import '@/styles/base.css'
import router from '@/router/index'

// element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 引入矢量图表样式
import "../public/iconfont/iconfont.css"
// import "../public/iconfont/iconfont.js"

import store from './store'

import { formatTime } from '@/utils/time'
Vue.use(ElementUI, VueAxios, axios)

Vue.directive('title', {
  inserted(el) {
    document.title = el.dataset.title
  }
})

Vue.filter('format', formatTime)

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
